/**
 * Title: Hyperbolic engine
 * Description: jFamilyTree Engine
 * Version: provider
 * Copyright: (c) 2001-2008
 * Terms of use:see license agreement at http://treebolic.sourceforge.net/en/license.htm
 * Author: Bernard Bou
 * Company: bsys
 * Update: Mon Mar 10 00:00:00 CEST 2008
 */
package jFamilyTree.core;

/**
 * Radial orientation-preserving transform (preserves focus-root orientation)
 * 
 * @author Bernard Bou
 */
class HyperRadialOrientationPreservingTransform extends HyperTransform
{
	public HyperRadialOrientationPreservingTransform(Complex from, Complex to, Complex thisRoot)
	{
		// thisRoot->0
		theXlat = new HyperTranslation(thisRoot).inverse();

		// from -> from1 -> to
		Complex from1 = theXlat.map(new Complex(from));
		composeXlats(theXlat, new HyperTranslation(from1, to));
	}
}
